import os
from gevent import monkey

monkey.patch_all()
chdir = os.path.dirname(os.path.abspath(__file__))
bind = '0.0.0.0:5005'
backlog = 512
timeout = 60
worker_class = 'gevent'
workers = 3
threads = 6
daemon = False
loglevel = 'info'
access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"'
accesslog = 'gunicorn_access.log'
errorlog = 'gunicorn_error.log'
pidfile = 'gunicorn.pid'

# nohup gunicorn -c gunicorn_config.py run:app 2>&1 &
# gunicorn -c gunicorn.conf test.wsgi  # django项目
# gunicorn -c gunicorn.conf test:app    # flask项目